<?php
if ( !defined('IN_SEC') ){exit();}
?>
<?php include template("admin_header");?>
				<div class="main-content">
					<div class="breadcrumbs" id="breadcrumbs">
						<script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>
<?php include template("admin_breadcrumb");?>
					</div>

					<div class="page-content">
						<div class="page-header">
							<h1><?php echo $team['name']; ?><small><i class="icon-double-angle-right"></i><?php echo $_G['admincp']['optname']; ?></small></h1>
						</div><!-- /.page-header -->

						<div class="row">
							<div class="col-xs-12">
								
								<!-- PAGE CONTENT BEGINS -->
								<div class="tabbable">
									<ul class="nav nav-tabs padding-18 tab-size-bigger" id="myTab">
										<li class="active">
											<a data-toggle="tab" href="#faq-tab-1">
												<i class="blue icon-bolt bigger-120"></i>概括
											</a>
										</li>

										<li>
											<a data-toggle="tab" href="#faq-tab-2">
												<i class="green icon-user bigger-120"></i>成员
											</a>
										</li>

										<li>
											<a data-toggle="tab" href="#faq-tab-3">
												<i class="orange icon-credit-card bigger-120"></i>进展
											</a>
										</li>

										<li class="dropdown">
											<a data-toggle="dropdown" class="dropdown-toggle" href="#">
												<i class="purple icon-signal bigger-120"></i>统计
												<i class="icon-caret-down"></i>
											</a>

											<ul class="dropdown-menu dropdown-lighter dropdown-125">
												<li>
													<a data-toggle="tab" href="#faq-tab-4"> Affiliates </a>
												</li>

												<li>
													<a data-toggle="tab" href="#faq-tab-4"> Merchants </a>
												</li>
											</ul>
										</li><!-- /.dropdown -->
									</ul>


                                <div id="edit-mission-form" class="modal" tabindex="-1">
									<div class="modal-dialog">
										<div class="modal-content">
											<div class="modal-header">
												<button type="button" class="close" data-dismiss="modal">&times;</button>
												<h4 class="blue bigger">添加一个新的任务列表</h4>
											</div>

											<div class="modal-body overflow-visible">
												<div class="row">
													<div class="col-xs-12 col-sm-12">

														<div class="form-group">
															<label for="form-field-username">任务名称：</label>

															<input class="input-large" type="text" id="form-field-username" placeholder="名称" value="" />
														</div>

														
													</div>
												</div>
											</div>

											<div class="modal-footer">
												<button class="btn btn-sm" data-dismiss="modal">
													<i class="icon-remove"></i> 取消
												</button>

												<button class="btn btn-sm btn-primary">
													<i class="icon-ok"></i> 添加
												</button>
											</div>
										</div>
									</div>
								</div>



									<div class="tab-content no-border padding-24">
										<div id="faq-tab-1" class="tab-pane fade in active">
											<h4 class="blue">
												<i class="icon-comments-alt bigger-110"></i> 讨论
											</h4>

											<div class="space-8"></div>
											<h4 class="blue">
												<i class="icon-edit bigger-110"></i> 任务 <a href="#edit-mission-form" role="button" class="btn btn-minier btn-primary no-border" data-toggle="modal">添加任务</a>
											</h4>
											<div id="mission-list" class="panel-group accordion-style1 accordion-style2">
<?php if(is_array($missions)){foreach($missions AS $k=>$v) { ?>
                                                <div class="panel panel-default">
													<div class="panel-heading">
														<a href="#mission-<?php echo $k; ?>" data-parent="#mission-list" data-toggle="collapse" class="accordion-toggle collapsed">
															<i class="icon-plus smaller-80" data-icon-hide="icon-minus" data-icon-show="icon-plus"></i>
															&nbsp; <?php echo $v['name']; ?>
														</a>
													</div>

													<div class="panel-collapse collapse" id="mission-<?php echo $k; ?>">
														<div id="mlist-<?php echo $k; ?>" class="panel-body">

                                                            <div id="faq-list-nested-1" class="panel-group accordion-style1 accordion-style2">
<?php if(is_array($datas['missions'][$v['id']]['teams'])){foreach($datas['missions'][$v['id']]['teams'] AS $tk=>$tv) { ?>
                                                                <div class="panel panel-default">
																	<div class="panel-heading">
																		<a href="#mission-<?php echo $k; ?>-<?php echo $tv['id']; ?>" data-parent="#mlist-<?php echo $k; ?>" data-toggle="collapse" class="accordion-toggle collapsed">
																			<i class="smaller-80 middle icon-plus" data-icon-hide="icon-minus" data-icon-show="icon-plus"></i>
																			&nbsp; <?php echo $tv['name']; ?>
																		</a>
																	</div>

																	<div class="panel-collapse collapse" id="mission-<?php echo $k; ?>-<?php echo $tv['id']; ?>">
																		<div class="panel-body">
																			Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.
																		</div>
																	</div>
																</div>
<?php }}?>
															</div>
														</div>
													</div>
												</div>
<?php }}?>
											</div>
<div class="row col-xs-12 col-sm-8" style="display:none;">
<style>
.title h4{font-size: 16px;color: #000000;margin: 0 0 0 -10px;padding: 0 0 0 10px;}
</style>
<div class="todolists">
<?php if(is_array($missions)){foreach($missions AS $k=>$v) { ?>
    <div class="todolist" data-guid="3f20f21c361a0faa5cb41b8692bf9ffb" data-sort="1" data-project-guid="02ef927daa8a4ff294ec2ab0fbe0e2c3">
        <div class="title">
		    <div class="todolist-actions actions">
                <div class="inr">
                    <a href="/projects/02ef927daa8a4ff294ec2ab0fbe0e2c3/lists/3590e5ed92b542c8bf5959e7a9d82380/stick" class="stick work" data-method="post" data-remote="true" data-title="改为所有任务完成后不自动归档列表" data-work-title="改为所有任务完成后自动归档此列表" rel="nofollow" title="改为所有任务完成后自动归档此列表">固定</a>
                    <a href="/projects/02ef927daa8a4ff294ec2ab0fbe0e2c3/lists/3590e5ed92b542c8bf5959e7a9d82380/edit" class="edit" data-remote="true" data-loading="true" data-mothod="get" title="编辑">编辑</a>
                    <a href="/projects/02ef927daa8a4ff294ec2ab0fbe0e2c3/lists/3590e5ed92b542c8bf5959e7a9d82380/destroy" class="del" data-confirm="确定要删除这个任务列表吗？" data-remote="true" data-method="post" title="删除任务列表">删除</a>
                </div>
            </div>
            <h4><a class="name" href="/projects/02ef927daa8a4ff294ec2ab0fbe0e2c3/lists/3f20f21c361a0faa5cb41b8692bf9ffb/show" data-stack><?php echo ++$k; ?>.<?php echo $v['name']; ?></a></h4>
        </div>
        <p class="todolist-auto-archive-tip">
            恭喜，任务都已完成：），若无新任务，稍后此列表将被归档，你可以
            <a href="/projects/02ef927daa8a4ff294ec2ab0fbe0e2c3/lists/3f20f21c361a0faa5cb41b8692bf9ffb/stick" class="btn-stick" data-loading="true" data-method="post" data-remote="true" rel="nofollow">取消自动归档</a>
        </p>
    
        <ul class="todos todos-uncompleted ui-sortable" style="display: block;">
<?php if(is_array($datas['missions'][$v['id']]['teams'])){foreach($datas['missions'][$v['id']]['teams'] AS $tk=>$tv) { ?>
            <li class="todo" data-sort="0" style="display: list-item; list-style:none;">
            <div class="todo-actions actions">
                <div class="inr">
                        <a href="/projects/02ef927daa8a4ff294ec2ab0fbe0e2c3/todos/46cb60632ef3472f8f1cbfee69acc593/running" class="run" data-loading="true" data-method="post" data-remote="true" title="标记成正在进行中">执行</a>
                        <a href="/projects/02ef927daa8a4ff294ec2ab0fbe0e2c3/todos/46cb60632ef3472f8f1cbfee69acc593/pause" class="pause" data-loading="true" data-method="post" data-remote="true" title="暂停">暂停</a>
        
                        <a href="/projects/02ef927daa8a4ff294ec2ab0fbe0e2c3/todos/46cb60632ef3472f8f1cbfee69acc593/edit" class="edit" data-request-members="02ef927daa8a4ff294ec2ab0fbe0e2c3" title="编辑">编辑</a>
                    <a href="/projects/02ef927daa8a4ff294ec2ab0fbe0e2c3/todos/46cb60632ef3472f8f1cbfee69acc593/destroy" class="del" data-remote="true" data-method="post" data-confirm="确定要删除这条任务吗？" title="删除">删除</a>
                </div>
            </div>
            <div class="todo-wrap">
                <span class="todo-content">
                    <a href="/projects/02ef927daa8a4ff294ec2ab0fbe0e2c3/todos/46cb60632ef3472f8f1cbfee69acc593" data-stack=""><?php echo $tv['name']; ?></a>
                </span>
                <a href="javascript:void(0);" dataid="<?php echo $v['id']; ?>" class="btn btn-minier btn-new-task btn-grey no-border"><?php echo heivrid($admincp->admins[$tv['adminid']]); ?> (<?php echo date('Y-m-d', $tv['end_time']); ?>)</a>
                <a href="/projects/02ef927daa8a4ff294ec2ab0fbe0e2c3" class="label todo-proj" data-stack-root="true" data-stack="true" title="熟悉Tower - 邀请同事加入Tower">熟悉Tower - 邀请同事加入T...</a>
            </div>
            </li>
<?php }}?>
        </ul>
    
        <ul class="todo-new">
			<div class="task-title clearfix hide">
				<div class="col-xs-12 col-sm-8">
					<div>
                    	<div class="task-i clearfix">
                            <input name="task-title" type="text" class="form-control" placeholder="新的任务">
                            <div class="space space-2"></div>
                            将任务指派给 <select name="adminid" class="select2" placeholder="选择一个成员"><?php echo option($admins, 0, '...'); ?></select>
                            <div class="space space-2"></div>
                            任务截止时间 <input name="end_time" type="text" class="input-sm date-picker" data-date-format="yyyy-mm-dd" placeholder="截止时间">
                        </div>
						<div class="pull-right">
							<button type="button" missionid="<?php echo $v['id']; ?>" class="btn btn-sm btn-success btn-save-task">
								添加任务<i class="icon-arrow-right icon-on-right bigger-110"></i>
							</button>
						</div>
					</div>
				</div>
			</div>
            <button type="button" dataid="<?php echo $v['id']; ?>" class="btn btn-minier btn-new-task btn-white no-border">添加新任务</button>
        </ul>
    </div>
<?php }}?>
</div>

                                                    </div>

											<div class="space-8"></div>


										</div>

										<div id="faq-tab-2" class="tab-pane fade">
											<h4 class="blue">
												<i class="green icon-user bigger-110"></i>
												Account Questions
											</h4>

											<div class="space-8"></div>

											<div id="faq-list-2" class="panel-group accordion-style1 accordion-style2">
												<div class="panel panel-default">
													<div class="panel-heading">
														<a href="#faq-2-1" data-parent="#faq-list-2" data-toggle="collapse" class="accordion-toggle collapsed">
															<i class="icon-chevron-right smaller-80" data-icon-hide="icon-chevron-down align-top" data-icon-show="icon-chevron-right"></i>
															&nbsp;
						Enim eiusmod high life accusamus terry richardson?
														</a>
													</div>

													<div class="panel-collapse collapse" id="faq-2-1">
														<div class="panel-body">
															Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.
														</div>
													</div>
												</div>

												<div class="panel panel-default">
													<div class="panel-heading">
														<a href="#faq-2-2" data-parent="#faq-list-2" data-toggle="collapse" class="accordion-toggle collapsed">
															<i class="icon-chevron-right smaller-80" data-icon-hide="icon-chevron-down align-top" data-icon-show="icon-chevron-right"></i>
															&nbsp;
					  Single-origin coffee nulla assumenda shoreditch et?
														</a>
													</div>

													<div class="panel-collapse collapse" id="faq-2-2">
														<div class="panel-body">
															Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.
														</div>
													</div>
												</div>

												<div class="panel panel-default">
													<div class="panel-heading">
														<a href="#faq-2-3" data-parent="#faq-list-2" data-toggle="collapse" class="accordion-toggle collapsed">
															<i class="icon-chevron-right middle smaller-80" data-icon-hide="icon-chevron-down align-top" data-icon-show="icon-chevron-right"></i>
															&nbsp;
					  Sunt aliqua put a bird on it squid?
														</a>
													</div>

													<div class="panel-collapse collapse" id="faq-2-3">
														<div class="panel-body">
															Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.
														</div>
													</div>
												</div>

												<div class="panel panel-default">
													<div class="panel-heading">
														<a href="#faq-2-4" data-parent="#faq-list-2" data-toggle="collapse" class="accordion-toggle collapsed">
															<i class="icon-chevron-right smaller-80" data-icon-hide="icon-chevron-down align-top" data-icon-show="icon-chevron-right"></i>
															&nbsp;
					  Brunch 3 wolf moon tempor sunt aliqua put?
														</a>
													</div>

													<div class="panel-collapse collapse" id="faq-2-4">
														<div class="panel-body">
															Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.
														</div>
													</div>
												</div>
											</div>
										</div>

										<div id="faq-tab-3" class="tab-pane fade">
											<h4 class="blue">
												<i class="orange icon-credit-card bigger-110"></i>
												Payment Questions
											</h4>

											<div class="space-8"></div>

											<div id="faq-list-3" class="panel-group accordion-style1 accordion-style2">
												<div class="panel panel-default">
													<div class="panel-heading">
														<a href="#faq-3-1" data-parent="#faq-list-3" data-toggle="collapse" class="accordion-toggle collapsed">
															<i class="icon-plus smaller-80" data-icon-hide="icon-minus" data-icon-show="icon-plus"></i>
															&nbsp;
						Enim eiusmod high life accusamus terry richardson?
														</a>
													</div>

													<div class="panel-collapse collapse" id="faq-3-1">
														<div class="panel-body">
															Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.
														</div>
													</div>
												</div>

												<div class="panel panel-default">
													<div class="panel-heading">
														<a href="#faq-3-2" data-parent="#faq-list-3" data-toggle="collapse" class="accordion-toggle collapsed">
															<i class="icon-plus smaller-80" data-icon-hide="icon-minus" data-icon-show="icon-plus"></i>
															&nbsp;
					  Single-origin coffee nulla assumenda shoreditch et?
														</a>
													</div>

													<div class="panel-collapse collapse" id="faq-3-2">
														<div class="panel-body">
															Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.
														</div>
													</div>
												</div>

												<div class="panel panel-default">
													<div class="panel-heading">
														<a href="#faq-3-3" data-parent="#faq-list-3" data-toggle="collapse" class="accordion-toggle collapsed">
															<i class="icon-plus smaller-80" data-icon-hide="icon-minus" data-icon-show="icon-plus"></i>
															&nbsp;
					  Sunt aliqua put a bird on it squid?
														</a>
													</div>

													<div class="panel-collapse collapse" id="faq-3-3">
														<div class="panel-body">
															Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.
														</div>
													</div>
												</div>

												<div class="panel panel-default">
													<div class="panel-heading">
														<a href="#faq-3-4" data-parent="#faq-list-3" data-toggle="collapse" class="accordion-toggle collapsed">
															<i class="icon-plus smaller-80" data-icon-hide="icon-minus" data-icon-show="icon-plus"></i>
															&nbsp;
					  Brunch 3 wolf moon tempor sunt aliqua put?
														</a>
													</div>

													<div class="panel-collapse collapse" id="faq-3-4">
														<div class="panel-body">
															Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.
														</div>
													</div>
												</div>
											</div>
										</div>

										<div id="faq-tab-4" class="tab-pane fade">
											<h4 class="blue">
												<i class="purple icon-magic bigger-110"></i>
												Miscellaneous Questions
											</h4>

											<div class="space-8"></div>

											<div id="faq-list-4" class="panel-group accordion-style1 accordion-style2">
												<div class="panel panel-default">
													<div class="panel-heading">
														<a href="#faq-4-1" data-parent="#faq-list-4" data-toggle="collapse" class="accordion-toggle collapsed">
															<i class="icon-hand-right" data-icon-hide="icon-hand-down" data-icon-show="icon-hand-right"></i>
															&nbsp;
						Enim eiusmod high life accusamus terry richardson?
														</a>
													</div>

													<div class="panel-collapse collapse" id="faq-4-1">
														<div class="panel-body">
															Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.
														</div>
													</div>
												</div>

												<div class="panel panel-default">
													<div class="panel-heading">
														<a href="#faq-4-2" data-parent="#faq-list-4" data-toggle="collapse" class="accordion-toggle collapsed">
															<i class="icon-frown bigger-120" data-icon-hide="icon-smile" data-icon-show="icon-frown"></i>
															&nbsp;
					  Single-origin coffee nulla assumenda shoreditch et?
														</a>
													</div>

													<div class="panel-collapse collapse" id="faq-4-2">
														<div class="panel-body">
															Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.
														</div>
													</div>
												</div>

												<div class="panel panel-default">
													<div class="panel-heading">
														<a href="#faq-4-3" data-parent="#faq-list-4" data-toggle="collapse" class="accordion-toggle collapsed">
															<i class="icon-plus smaller-80" data-icon-hide="icon-minus" data-icon-show="icon-plus"></i>
															&nbsp;
					  Sunt aliqua put a bird on it squid?
														</a>
													</div>

													<div class="panel-collapse collapse" id="faq-4-3">
														<div class="panel-body">
															Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.
														</div>
													</div>
												</div>

												<div class="panel panel-default">
													<div class="panel-heading">
														<a href="#faq-4-4" data-parent="#faq-list-4" data-toggle="collapse" class="accordion-toggle collapsed">
															<i class="icon-plus smaller-80" data-icon-hide="icon-minus" data-icon-show="icon-plus"></i>
															&nbsp;
					  Brunch 3 wolf moon tempor sunt aliqua put?
														</a>
													</div>

													<div class="panel-collapse collapse" id="faq-4-4">
														<div class="panel-body">
															Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.
														</div>
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>

								<!-- PAGE CONTENT ENDS -->
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div>
<?php include template("admin_footer");?>
		<!-- page specific plugin scripts -->
		<link rel="stylesheet" href="/static/ace/assets/css/dropzone.css" />
		<link rel="stylesheet" href="/static/ace/assets/css/bootstrap-editable.css" />
		<link rel="stylesheet" href="/static/ace/assets/css/select2.css" />
		<link rel="stylesheet" href="/static/ace/assets/css/datepicker.css" />
		<link rel="stylesheet" href="/static/ace/assets/css/daterangepicker.css" />

		<script src="/static/ace/assets/js/date-time/bootstrap-datepicker.min.js"></script>
		<script src="/static/ace/assets/js/date-time/daterangepicker.min.js"></script>

		<script src="/static/ace/assets/js/dropzone.min.js"></script>
		<script src="/static/ace/assets/js/select2.min.js"></script>
		<script src="/static/ace/assets/js/x-editable/bootstrap-editable.min.js"></script>
		<script src="/static/ace/assets/js/x-editable/ace-editable.min.js"></script>

		<script src="/static/ace/assets/js/markdown/markdown.min.js"></script>
		<script src="/static/ace/assets/js/markdown/bootstrap-markdown.min.js"></script>
		<script src="/static/derek/ajaxfileupload.js"></script>
<script>
D.Tlog = {
	actions : {
		create : '创建',
		edit : '编辑',
		del : '删除',
		finish : '完成',
		work : '启动'
	},
	types : {
		mission : '任务列表',
		task : '任务'
	},
	init : function(){
		D.Tlog.get();
		$('.prev-date, .next-date').on('click', function(){
			var span = $(this).children('span');
			var date = span.attr('time');
			D.Tlog.get(date);
		});
	},
	get : function(date){
		$('#page-project-recap .message-loading-overlay').removeClass('hide');
		D.ajax.get('?action=team&operation=edit&id=2&act=get_logs&end_time=' + (date ? date : ''), function(json){
			$('#page-project-recap .message-loading-overlay').addClass('hide');
			$('.current-date').html(json.data.end_date + '，星期' + json.data.end_weekday);
			$('.last-time').html(json.data.last_date).attr('time', json.data.last_time);
			$('.next-time').html(json.data.next_date).attr('time', json.data.next_time);
			if( json.data.members.length ){
				var taskhtml = '';
				$.each(json.data.logs, function(i, n){
					$.each(n, function(k, v){
						var item_html = '';
						var item_count = 0;
						$.each(v, function(dk, dv){
							item_count++;
							var member = D.T.selector('#member-item', {
								heivrid : dv.heivrid,
								name : dv.name,
								avatar : dv.avatar
							});
							item_html += D.T.selector('#' + i + '-item', {
								title : dv.title,
								member : member
							});
						});

						taskhtml += D.T.selector('#task-item-template', {
							action : D.Tlog.actions[k],
							type : D.Tlog.types[i],
							count : item_count,
							item_html : item_html
						});
					});
				});
				$('.created-todos').html(taskhtml);
				$('.page-inner .empty').hide();
				$('.page-inner .has-logs').removeClass('hide');

				$('#logs-member').html(json.data.members.length);
				var html = '';
				$.each(json.data.members, function(i, n){
					html += '<li><a target="_blank" href="?action=account&operation=profile&heivrid='+n.heivrid+'&profile=1" class="avatar-wrap"><img alt="'+n.name+'" class="avatar" src="'+n.avatar+'" title="'+n.name+'"></a></li>';
				});
				$('#logs-members').html(html);
			}else{
				$('.page-inner .empty').show();
				$('.page-inner .has-logs').addClass('hide');
			}
		});
	}
}
D.Task = {
	init : function(){
		$('.date-picker').datepicker({autoclose:true}).next().on(ace.click_event, function(){
			$(this).prev().focus();
		});

		$('.btn-new-task').on('click', function(){
			$(this).hide();
			$(this).prev('.task-title').removeClass('hide');
		});
		$('.btn-save-task').on('click', function(){
			var box = $(this).parent().prev('.task-i');
			var title = box.children('input[name="task-title"]').val();
			var adminid = box.children('select[name="adminid"]').val();
			var end_time = box.children('input[name="end_time"]').val();
			var missionid = $(this).attr('missionid');
			D.ajax.get('?action=team&operation=edit&id=<?php echo $team['id']; ?>&act=insert_task&title=' + title + '&adminid=' + adminid + '&end_time=' + end_time + '&missionid=' + missionid, function(json){

			});
		});
		$(".select2").css('width','200px').select2({allowClear:true})
	}
}
D.DropZone = {
	init : function(){
		$('.dropzone').dropzone({
			paramName: "file", // The name that will be used to transfer the file
			maxFilesize: 5, // MB
			addRemoveLinks : true,
			dictDefaultMessage :
				'<span class="bigger-150 bolder"><i class="icon-caret-right red"></i> 拖动文件</span> 上传 \
				<span class="smaller-80 grey">(或者点击)</span> <br /> \
				<i class="upload-icon icon-cloud-upload blue icon-3x"></i>'
			,
			success : function(json){
				var json_string = json.xhr.response;
				if( json_string.length > 5 ){
					$('.contact-files').append('<input codekey="'+encodeURIComponent(json_string)+'" name="files[]" value="'+json_string+'" type="hidden" />');
				}
				return json.previewElement.classList.add("dz-success");
			},
			removedfile : function(file){
				var filepath = file.xhr.responseText;
				if( filepath ){
					D.ajax.get('?action=customer&operation=edit&act=delete_file&file=' + encodeURIComponent(filepath), function(json){
						if( json.data == 'ok' ){
							$('input[codekey="'+encodeURIComponent(filepath)+'"]').remove();
							var _ref;
							if ((_ref = file.previewElement) != null) {
							  _ref.parentNode.removeChild(file.previewElement);
							}
						}
					});
				}
				return this._updateMaxFilesReachedClass();
			},
			dictRemoveFile : '删除文件',
			dictResponseError: '在上传文件时出错!',
			//change the previewTemplate to use Bootstrap progress bars
			previewTemplate: "<div class=\"dz-preview dz-file-preview\">\n  <div class=\"dz-details\">\n    <div class=\"dz-filename\"><span data-dz-name></span></div>\n    <div class=\"dz-size\" data-dz-size></div>\n    <img data-dz-thumbnail />\n  </div>\n  <div class=\"progress progress-small progress-striped active\"><div class=\"progress-bar progress-bar-success\" data-dz-uploadprogress></div></div>\n  <div class=\"dz-success-mark\"><span></span></div>\n  <div class=\"dz-error-mark\"><span></span></div>\n  <div class=\"dz-error-message\"><span data-dz-errormessage></span></div>\n</div>"
		});
		try {
/*
			drop.on('success', function(json){
				  for (var p in json) {
					  console.log(p + ' = ' + json[p]);
					  if( typeof(json[p]) == 'object' ){
						  for( var n in json[p] ){
							  console.log(p + '[' + n + '] = ' + json[p][n]);
						  }
					  }
				  }
			});
*/
//			$('.dropzone').dropzone();
		} catch(e) {
		}
	}
}
D.Editable = {
	callfunc : {
		city : function(response, data){
			var box = $(this);
			var html = box.html();
			var name = $(this).attr('id');
			D.Editable.post(box, name, data);
		}
	},
	init : function(){
		//editables on first profile page
		$.fn.editable.defaults.mode = 'inline';
		$.fn.editableform.loading = "<div class='editableform-loading'><i class='light-blue icon-2x icon-spinner icon-spin'></i></div>";
	    $.fn.editableform.buttons = '<button type="submit" class="btn btn-info editable-submit"><i class="icon-ok icon-white"></i></button>'+
	                                '<button type="button" class="btn editable-cancel"><i class="icon-remove"></i></button>';    
		//editables 

		var maps = <?php echo json_encode($select_2_maps); ?>;
		$('#province').editable({
			mode: 'inline',
			type : 'select2',
			value : $('#province').attr('data'),
			source: maps['provinces'],
			success : function(response, data) {
				var box = $(this);
				var html = box.html();
				var name = $(this).attr('id');
				var province = $('#province').attr('data');

				if( province == data ){
					return false;
				}
				province = data;
				$('#province').attr('data', province);
//				$('#city').editable('destroy');
				D.Editable.post(box, name, data);
				D.ajax.get('?action=customer&operation=edit&act=public_get_city&dataid=' + province, function(json){
					if( json.data != null ){
						var sources = [];
						$.each(json.data, function(k, v){
							sources.push({id: v.id, text: v.name});
						});

						//so we remove it altogether and create a new element
						var city = $('#city').removeAttr('id').get(0);
						$(city).clone().attr('id', 'city').text('选择城市').editable({
							type: 'select2',
							value : null,
							source: sources,
							success : D.Editable.callfunc.city
						}).insertAfter(city);//insert it after previous instance
						$(city).remove();//remove previous instance
					}
				});
			}
		});
		$('#city').editable({
			mode: 'inline',
			type : 'select2',
			value : $('#city').attr('data'),
			source: maps['citys'],
			success : function(response, data) {
				var box = $(this);
				var html = box.html();
				var name = $(this).attr('id');
			}
		});

	    $('#demands').editable({
			mode: 'inline',
			type : 'select2',
			value : maps['demands_values'],
			source: maps['demands'],
			select2: {
				allowClear : true,
				multiple: true
			},
			success : function(response, data) {
				var box = $(this);
				var html = box.html();
				var name = $(this).attr('id');
				maps['demands_values'] = data;
				D.Editable.post(box, name, data);
			}
		});
	    $('#contact_job').editable({
			type: 'select2',
			value : $('#contact_job').attr('data'),
	        source: maps['jobs'],
			success: function(response, data) {
				var box = $(this);
				var name = $(this).attr('id');
				var currentValue = $('#contact_job').attr('data');
				if(currentValue == data) return false;
				currentValue = data;
				$('#contact_job').attr('data', currentValue);
				D.Editable.post(box, name, data);
			}
	    });
	    $('#status').editable({
			type: 'select2',
			value : $('#status').attr('data'),
	        source: maps['status'],
			success: function(response, data) {
				var box = $(this);
				var name = $(this).attr('id');
				var currentValue = $('#status').attr('data');
				if(currentValue == data) return false;
				currentValue = data;
				$('#status').attr('data', currentValue);
				D.Editable.post(box, name, data);
			}
	    });
	    $('#nature').editable({
			type: 'select2',
			value : $('#nature').attr('data'),
	        source: maps['natures'],
			success: function(response, data) {
				var box = $(this);
				var name = $(this).attr('id');
				var currentValue = $('#nature').attr('data');
				if(currentValue == data) return false;
				currentValue = data;
				$('#nature').attr('data', currentValue);
				D.Editable.post(box, name, data);
			}
	    });
	    $('.editable').editable({
			type: 'text',
			success : function(response, data) {
				var box = $(this);
				var html = box.html();
				var name = $(this).attr('id');
				if( name == 'name' && !data ){
					bootbox.alert('空值你也敢提交...什么心态');
					return false;
				}
				D.Editable.post(box, name, data);
			}
	    });
	},
	post : function(box, name, data, type){
		var post = {
			field : name,
			data : data
		};
		D.loading.bootbox();
		D.ajax.postdata('?action=customer&operation=edit&id=<?php echo $customer['id']; ?>&act=change_field', post, function(json){
			bootbox.hideAll();
			error = json.error;
			if( json.error ){
				bootbox.alert(json.data);
//				box.html(html);
			}
		});
	}
}
D.Main = {
	mission : function(){
		$('.add-mission').on('click', function(){
			$(this).hide();
			$('.mission-title').show();
			$('input[name="mission-title"]').focus();
		});
		$('.btn-save-mission').on('click', function(){
			var title = $('input[name="mission-title"]').val();
			if( title ){
				D.ajax.get('?action=team&operation=edit&id=<?php echo $team['id']; ?>&act=insert_mission&title=' + title, function(json){
					$('.btn-save-mission').hide();
				});
			}
		});
	},
	init : function(){
		D.Main.mission();
		$('[data-rel="tooltip"]').tooltip({container:'body'});
		$('#id-check-switch').removeAttr('checked').on('click', function(){
			$('.switch-div').addClass('hide');
			if( this.checked ){
				$('.switch-table').removeClass('hide');
			}else{
				$('.switch-row').removeClass('hide');
			}
		});
		$('.btn-post-one').on('click', function(){
			var type = $('input[name="type"]:checked').val();
			var content = $('textarea[name="content"]').val();
			if( !type ){
				bootbox.alert('请选择沟通方式');
				return false;
			}
			if( !content ){
				bootbox.alert('请填写沟通内容');
				return false;
			}
			var loading = bootbox.dialog({
				message: '<div class="tree-loading" style="text-align: center;"><i class="icon-refresh icon-spin blue"></i></div>' 
			});
			var data = $('#contact-form').serialize();
			D.ajax.postdata($('#contact-form').attr('action'), data, function(json){
				bootbox.hideAll();
				var buttons = json.error ? {
					danger : {
						label : "错误",
						className : "btn-sm btn-primary"
					}
				} : {
					success : {
						label : "OK",
						className : "btn-sm btn-primary",
						callback : function(){
							window.location.href = '?action=customer&operation=edit&detail=yes&id=<?php echo $customer['id']; ?>&qrt=profile';
						}
					}
				};
				bootbox.dialog({
					message: json.data, 
					buttons: buttons
				});
			});
//			D.ajax.postdata($('#contact-form').attr('action'), data, );
			return false;
		});
	}
}
</script>
<style>

.todolists, .todolists *{box-sizing:content-box !important;}

.todolists{width:630px;margin:0 0 0 2px;*zoom:1}
.todolists{padding-left:15px}
.todolists{padding-left:15px}
.todolists h4{margin:0 0 5px 0;font-size:14px;font-weight:bold}
.todolists h4 .fold{display:none}
.todolist{margin-bottom:15px}
.todolist:last-child{margin-bottom:0}
.todolist .todo .todo-wrap{padding-left:0;font-size:14px}
//.todolist .todo .todo-wrap:before{font-family:'FontAwesome';content:"\f096 ";color:#aaa}
.todolist .todo.completed a{color:#333}
.todolist .todo.completed a:hover{color:#0f769f}
.todolist .todo.completed .todo-wrap:before{content:"\2714 ";color:#BBCFB5}
.todolist .todo.completed .completed-member{color:#999;font-size:12px;vertical-align:1px;margin-left:3px}
.doc-list{padding-left:15px;margin:0}


.todolists-wrap{float:left}
.todos-all .filters-wrap{float:right}
.todos-all .filters-wrap h5{font-size:14px;color:#000;margin:0 0 10px 0}
.todos-all .filters-wrap select{width:180px;display:inline-block;margin-bottom:10px}
.todos-all .filters-wrap .filter-desc{display:none;font-size:12px;color:#999}
.todos-all .filters-wrap .filter-desc strong{padding-right:5px;font-weight:bold;font-size:14px}
.todos-all .filters-wrap .filter-desc em{font-style:normal;background:#FFF2AB;color:#000}
.todos-all .todolists-completed-wrap{clear:both;padding:0 100px 0 0}
.todos-all .todolists-completed{color:#887;word-wrap:break-word}
.todos-all .todolists-completed h5{color:#555;font-size:14px;display:inline-block;margin:0 5px 0 0}
.todos-all .todolists-completed a{color:#999;font-size:12px;margin:0 0 0 5px}
.todos-all .todolists-completed a:hover{color:#0f769f}
.todos-all .todolists-completed .show-all{font-size:12px}
.todos-all .todolists-completed .show-all a{margin:0}
.todos-all .todolists-completed .all{display:none}
.todos-all .todo-history-link{margin-top:10px}
.todos-all .todo-history-link a{font-size:12px}
.todos-all .todo-history-link a:hover{color:#0f769f}
.todolist-form{margin:0 0 30px 0}
.todolist-form input{width:603px;margin-bottom:10px;font-size:16px;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}
.todolists{width:630px;margin:0 0 0 2px;*zoom:1}
.todolists:before,.todolists:after{display:table;content:""}
.todolists:after{clear:both;height:0;visibility:hidden}
.todolist{position:relative;margin:0 0 20px 0}
.todolist .todolist-actions .close{display:inline !important}
.todolist .todolist-actions .reopen{display:none !important}
.todolist.todolist-completed .title h4 a{color:#999}
.todolist.todolist-completed .todolist-actions .close{display:none !important}
.todolist.todolist-completed .todolist-actions .reopen{display:inline !important}
.todolist a{color:#000}
.todolist a:hover{color:#0f769f}
.todolist .title{margin-bottom:10px}
.todolist .title h4{margin:0 0 0 -10px;padding:0 0 0 10px}
.todolist .title h4 a{font-weight:bold}
.todolist .title h4 a i{display:none;font-size:16px;font-weight:bold;line-height:1;color:#999;padding:6px 8px}
.todolist .title h4 a i.icon-angle-down{display:inline}
.todolist .title .tl-todo-count{color:#555;font-size:12px}
.todolist .title .actions{left:-105px}
.todolist .title:hover .actions{display:block}
.todolist .title:hover a.fold i{display:inline}
.todolist.ui-sortable-helper,.todolist.collapse{padding-bottom:0;margin-bottom:0}
.todolist.ui-sortable-helper .title,.todolist.collapse .title{-webkit-transition-duration:.5s;-moz-transition-duration:.5s;transition-duration:.5s;padding:10px 10px 10px 10px;background:#fff;-webkit-box-shadow:0 2px 6px rgba(0,0,0,0.3);-moz-box-shadow:0 2px 6px rgba(0,0,0,0.3);box-shadow:0 2px 6px rgba(0,0,0,0.3);-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}
.todolist.ui-sortable-helper .title .actions,.todolist.ui-sortable-helper .title:hover .actions,.todolist.collapse .title .actions,.todolist.collapse .title:hover .actions{display:none}
.todolist.ui-sortable-helper.ui-sortable-helper a,.todolist.collapse.ui-sortable-helper a{color:#0f769f}
.todolist.ui-sortable-helper .fold i,.todolist.collapse .fold i{display:none !important}
.todolist em.priority{font-weight:bold;color:red}
.todolist em.tag{padding:2px;vertical-align:1px;background:#e3f2f7;color:#356;font-size:82%;font-weight:normal;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}
.todolist .todo{font-size:15px;padding:2px 5px 2px 10px;margin:0 0 0 -10px;position:relative}
//.todolist .todo .todo-wrap{padding-left:30px;line-height:1.6}
.todolist .todo .todo-content{word-wrap:break-word}
.todolist .todo .todo-content span{display:none}
.todolist .todo .todo-content .raw{display:none !important}
.todolist .todo input[type="checkbox"]{font-size:16px;vertical-align:middle;margin:-3px 5px 0 -23px}
.todolist .todo .label{display:inline-block;position:relative;top:-2px;margin:0 0 0 5px;padding:2px 6px 2px;line-height:1;background:#efefef;font-size:12px;color:#999;font-style:normal;vertical-align:middle;white-space:nowrap;word-break:keep-all;word-wrap:normal;-moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px}
.todolist .todo .label:hover{color:#666666}
.todolist .todo .label:hover.comments-count.unread{background:#9db3bf}
.todolist .todo .label.comments-count.unread{background:#87A1AF;color:#fff}
.todolist .todo .label.no-assign{display:inline-block;border:1px solid #eeeeee;padding:3px 7px 3px;color:#999999;background:none}
.todolist .todo .label.no-assign:hover{background:#eeeeee;color:#666666}
.todolist .todo .label.no-assign:hover.disabled{background:none;color:#999}
.todolist .todo .label.no-assign.popover-target{display:inline-block;background:#eee;color:#666}
.todolist .todo .label.disabled{color:#999;cursor:default}
.todolist .todo .label.delay{color:#d45d51;background:#fbdbdb}
.todolist .todo .label:hover.delay{color:#c71807}
.todolist .todo .label.todo-proj{display:none}
.todolist .todo .label.completed-member .completed-time:before{content:" , "}
.todolist .todo:hover .actions{display:block}
.todolist .todo .todo-actions .run{display:inline}
.todolist .todo .todo-actions .pause{display:none}
.todolist .todo .runner{display:inline-block;margin-left:-3px;height:0px;width:0;line-height:0px;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;transition-delay:0.1s;-moz-transition-delay:0.1s;-webkit-transition-delay:0.1s;-o-transition-delay:0.1s}
.todolist .todo .runner img{width:24px;height:24px;opacity:0;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;-webkit-transform:scale(0);-moz-transform:scale(0);transform:scale(0)}
.todolist .todo .runner.on{margin-left:0;width:24px;height:16px;line-height:24px;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}
.todolist .todo .runner.on img{opacity:1;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;-webkit-transform:scale(1);-moz-transform:scale(1);transform:scale(1);transition-delay:0.1s;-moz-transition-delay:0.1s;-webkit-transition-delay:0.1s;-o-transition-delay:0.1s}
.todolist .todo.completed{padding-top:2px;padding-bottom:2px}
.todolist .todo.completed .label{margin:0;font-size:12px;color:#999;background:none;top:0}
.todolist .todo.completed input[type="checkbox"]{font-size:9px}
.todolist .todo.completed .todo-content a{color:#999999}
.todolist .todo.completed .todo-content a:hover{color:#0f769f}
.todolist .todo.completed .todo-content em.priority{font-weight:normal;color:#999}
.todolist .todo.completed .todo-content em.tag{padding:2px;vertical-align:1px;background:#f1f1f1;color:#999;font-size:82%;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}
.todolist .todo span.label.comments-count{display:none}
.todolist .todo.hl .todo-content{background:#FFF2AB;color:#000}
.todolist .todo.ui-draggable-dragging .actions,.todolist .todo.ui-draggable-dragging:hover .actions,.todolist .todo.ui-sortable-helper .actions,.todolist .todo.ui-sortable-helper:hover .actions{display:none}
.todolist .todo.ui-draggable-dragging .todo-content a,.todolist .todo.ui-sortable-helper .todo-content a{color:#0f769f}
.todolist .actions{position:absolute;left:-95px;top:-1px;z-index:1500;width:100px;display:none}
.todolist .actions .inr{float:right;padding:2px 5px 2px 10px;background:#fff;border-radius:10px 0 0 10px;-webkit-box-shadow:-1px 0 1px rgba(0,0,0,0.2);-moz-box-shadow:-1px 0 1px rgba(0,0,0,0.2);box-shadow:-1px 0 1px rgba(0,0,0,0.2);*zoom:1}
.todolist .actions .inr:before,.todolist .actions .inr:after{display:table;content:""}
.todolist .actions .inr:after{clear:both;height:0;visibility:hidden}
.todolist .actions a{display:inline-block;float:right;width:16px;height:16px;padding:4px 5px;text-indent:-999px;overflow:hidden;background-image:url(/static/tower/todo-actions-icon-03198277d00fa322f26853a9fcac697a.png);background-repeat:no-repeat}@media all and (-webkit-min-device-pixel-ratio: 1.5), all and (-o-min-device-pixel-ratio: 3 / 2), all and (min--moz-device-pixel-ratio: 1.5), all and (min-device-pixel-ratio: 1.5){.todolist .actions a{background-image:url(/assets/todo-actions-icon@2x-84010255ab45dc838c1eaccfb973d19b.png);background-size:60px auto}}
.todolist .actions .del{background-position:6px 5px}
.todolist .actions .del:hover{background-position:-24px 5px}
.todolist .actions .edit{background-position:6px -25px}
.todolist .actions .edit:hover{background-position:-24px -25px}
.todolist .actions .run{background-position:6px -55px}
.todolist .actions .run:hover{background-position:-24px -55px}
.todolist .actions .pause{background-position:6px -85px}
.todolist .actions .pause:hover{background-position:-24px -85px}
.todolist .actions .stick{background-position:6px -115px}
.todolist .actions .stick:hover{background-position:-24px -115px}
.todolist .actions .stick.work{background-position:6px -145px}
.todolist .actions .stick.work:hover{background-position:-24px -145px}
.todolist .todo-assign-due-form{position:absolute;z-index:100;background:#fff;padding:10px 15px;width:140px;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 1px 6px rgba(0,0,0,0.3);-moz-box-shadow:0 1px 6px rgba(0,0,0,0.3);box-shadow:0 1px 6px rgba(0,0,0,0.3)}
.todolist .todo-assign-due-form select{width:140px}
.todolist .todo-assign-due-form .arrow{position:absolute;width:14px;height:10px;top:-10px;left:30px;z-index:101;background:url(arrow-up.png) no-repeat 0 0 transparent}
.todos-completed{margin-top:10px}
.todos.ui-sortable{min-height:10px}
.todos.ui-sortable.sorting .actions{display:none}
.todo-placeholder{display:block;border:2px dashed #e0e0e0;background-color:rgba(255,240,160,0.2)}
.todolist-placeholder{display:block;height:46px;border:2px dashed #e0e0e0;margin-bottom:10px;background-color:rgba(255,240,160,0.2);-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}
.group-placeholder{display:block;height:46px;border:2px dashed #e0e0e0;margin-bottom:10px;background-color:rgba(255,240,160,0.2);-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}
.todolist-auto-archive-tip{display:none;color:#bbb;font-size:12px}
.todolist-auto-archive-tip .btn-stick{text-decoration:underline;color:#999}
.todolist-auto-archive-tip .btn-stick:hover{color:#0f769f}



.todolist .link-more-completed{font-size:12px;color:#4298ba;margin:30px}
.todos-all .todolist .link-more-completed:hover{color:#0f769f}
.todolist .title h4 a.fold,.todolist .title:hover h4 a.fold{display:none !important}
.todolist .todolist-actions,.page[data-locked] .todolist .todolist-actions,.page[data-deleted] .todolist .todolist-actions{display:none}
.todolist .todo-new-wrap,.todolist .todo-new-wrap,.todolist .todo-new-wrap{display:none}
</style>
<?php if($_G['gp_qrt']){?>
<script>
D.QRT = {
	init : function(){
		$('.nav-tabs li a[href="#<?php echo $_G['gp_qrt']; ?>"]').click();
	}
}
</script>
<?php }?>
</body>
</html>
